<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=no">
    <title>日新网_我的问答</title>
    <link rel="stylesheet" href="__TMPL__Public/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="__TMPL__Public/assets/css/reset.css">
    <link rel="stylesheet" href="__TMPL__Public/assets/css/style.css">
    <script type="text/javascript" src="__TMPL__Public/assets/js/rem.js"></script>
</head>
<style>
    body {
        background-color: #fff!important;
    }
</style>
<body>
<!--nav-->
<tc_include file="Public:nav"/>
<!--我的评论页-->
<div class="comWidth comment">

    <ul>
        <volist name="comments" id="vo">
            <a href="{:U('portal/article/article_info', ['id' => $vo['id']])}">
                <li class="comment_item ">
                    <p class="visit_ground comment_item_list">
                        <span class="visit_name">{$vo.act_name}</span>&nbsp;{$vo.act}&nbsp;<span>{$vo.content}</span>
                    </p>
                    <p class="timer">{$vo.createtime}</p>
                    <p class="title">{$vo.post_title}</p>
                </li>
            </a>
        </volist>
    </ul>
    <if condition="empty($comments)">
        <div style="width: 5rem;height: 3.8rem;position: absolute;top: 50%;left: 50%;margin-top: -1.9rem;margin-left: -2.5rem;">
            <img src="/public/images/img/replace.png" alt="" style="width: 100%;height: auto;">
        </div>
    </if>
    <div style="height: .5rem;line-height: .5rem;background-color: #efdddd;" class="js-infinite-scroll-loading text-center">更多</div>
    <div id="nextpage"></div>
</div>
<!--页脚-->
<tc_include file="Public:footer"/>
<script type="text/javascript" src="__TMPL__Public/assets/js/jquery.1.12.4.js"></script>
<script src="__TMPL__Public/assets/js/bootstrap.min.js"></script>
<script src="__TMPL__Public/assets/js/jquery.infiniteScroll.js"></script>
<script>
    $(function () {
        // 加载更多
        $('#nextpage').infiniteScroll({
            loading:'.js-infinite-scroll-loading',
            total_pages:{$total_pages},
            success:function(content){
                var items = $(content).find('ul a');
                if(items.length > 0){
                    $('ul').append(items);
                }
            }
        });
    });
</script>
</body>
</html>